package com.yc.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.sql.Timestamp;

/**
 * <p>
 * 
 * </p>
 *
 * @author lzk
 * @since 2024-09-23
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("question")
public class Question implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @NotBlank(message = "题目不能为空！")
    @TableField("content")
    private String content;

    @NotBlank(message = "课题不能为空！")
    @TableField("course")
    private String course;

    @NotBlank(message = "类别不能为空！")
    @TableField("type")
    private String type;

    @NotBlank(message = "答案不能为空！")
    @TableField("items")
    private String items;

    @TableField("create_time")
    private Timestamp createTime;

    @TableField("ideas")
    private String ideas;

    @TableField("image")
    private String image;

    @TableField("status")
    private int status;


}
